/**
 * Copyright (C) 2010, 2011 Neofonie GmbH
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package eu.dicodeproject.analysis.restapi;

import org.apache.hadoop.hbase.util.Bytes;

/**
 * @author jakob
 */
public class SchemaConfig {

  private String tableName;
  private byte[] contentColumn;

  private byte[] columnFamily;
  private byte[] fhgColumnFamily;
  
  private byte[] nerColumn;  
  private byte[] languageColumn;
  private byte[] textColumn;

  private byte[] deLanguageColumn;  //TODO fix this in the schema rather than hacking it here

  private int idStartPositionInKey;


  public String getTableName() {
    return tableName;
  }

  public void setTableName(String tableName) {
    this.tableName = tableName;
  }

  public byte[] contentColumn() {
    return contentColumn;
  }

  public void setContentColumn(String contentColumn) {
    this.contentColumn = Bytes.toBytes(contentColumn);
  }

  public byte[] columnFamily() {
    return columnFamily;
  }

  public void setColumnFamily(String columnFamily) {
    this.columnFamily = Bytes.toBytes(columnFamily);
  }
  
  public byte[] fhgColumnFamily() {
    return fhgColumnFamily;
  }

  public void setFhgColumnFamily(String fhgColumnFamily) {
    this.fhgColumnFamily = Bytes.toBytes(fhgColumnFamily);
  }
    
  public byte[] nerColumn() {
    return nerColumn;
  }

  public void setNerColumn(String nerColumn) {
    this.nerColumn = Bytes.toBytes(nerColumn);
  }
  
  public byte[] languageColumn() {
    return languageColumn;
  }

  public void setLanguageColumn(String languageColumn) {
    this.languageColumn = Bytes.toBytes(languageColumn);
  }

  public byte[] deLanguageColumn() {
    return this.deLanguageColumn;
  }

  public void setDeLanguageColumn(String deLanguageColumn) {
    this.deLanguageColumn = Bytes.toBytes(deLanguageColumn);
  }

  public byte[] textColumn() {
    return textColumn;
  }

  public void setTextColumn(String textColumn) {
    this.textColumn = Bytes.toBytes(textColumn);
  }

  public int idStartPositionInKey() {
    return idStartPositionInKey;
  }


  public void setIdStartPositionInKey(int idStartPositionInKey) {
    this.idStartPositionInKey = idStartPositionInKey;
  }

}